- name: d8.kernel-requirements
  rules:
    - alert: D8NodeHasUnmetKernelRequirements
      expr: >-
        count(d8_node_kernel_does_not_satisfy_requirements) > 0
      for: 5m
      labels:
        severity_level: "4"
        tier: cluster
      annotations:
        plk_markup_format: markdown
        plk_protocol_version: "1"
        summary: Nodes have unmet kernel requirements
        description: |-
          Some nodes have unmet kernel constraints. This means that some modules cannot be run on that nodes.
          Current kernel constraint requirements:
          For Cilium module kernel should be >= 4.9.17.
          For Cilium with Istio modules kernel should be >= 5.7.
          For Cilium with OpenVPN modules kernel should be >= 5.7.
          For Cilium with Node-local-dns modules kernel should be >= 5.7.

          To observe affected nodes use the expr `d8_node_kernel_does_not_satisfy_requirements == 1` in Prometheus.
